﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="ManPowerResourceInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class ManPowerResourceInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private string EquipmentProfileIDField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ForkliftDriverField;
        [OptionalField]
        private string IsHolidayField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string OrderTypeField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StoreManField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;
        [OptionalField]
        private string WorkClassField;
        [OptionalField]
        private string WorkTypeField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public string EquipmentProfileID
        {
            get
            {
                return this.EquipmentProfileIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.EquipmentProfileIDField, value))
                {
                    this.EquipmentProfileIDField = value;
                    this.RaisePropertyChanged("EquipmentProfileID");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ForkliftDriver
        {
            get
            {
                return this.ForkliftDriverField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ForkliftDriverField, value))
                {
                    this.ForkliftDriverField = value;
                    this.RaisePropertyChanged("ForkliftDriver");
                }
            }
        }

        [DataMember]
        public string IsHoliday
        {
            get
            {
                return this.IsHolidayField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsHolidayField, value))
                {
                    this.IsHolidayField = value;
                    this.RaisePropertyChanged("IsHoliday");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string OrderType
        {
            get
            {
                return this.OrderTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderTypeField, value))
                {
                    this.OrderTypeField = value;
                    this.RaisePropertyChanged("OrderType");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string StoreMan
        {
            get
            {
                return this.StoreManField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StoreManField, value))
                {
                    this.StoreManField = value;
                    this.RaisePropertyChanged("StoreMan");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }

        [DataMember]
        public string WorkClass
        {
            get
            {
                return this.WorkClassField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WorkClassField, value))
                {
                    this.WorkClassField = value;
                    this.RaisePropertyChanged("WorkClass");
                }
            }
        }

        [DataMember]
        public string WorkType
        {
            get
            {
                return this.WorkTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WorkTypeField, value))
                {
                    this.WorkTypeField = value;
                    this.RaisePropertyChanged("WorkType");
                }
            }
        }
    }
}

